home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / ODF / OS / FWODMisc / FWODGeom.h < prev    next >
Encoding:
Text File  |  1996-09-17  |  2.0 KB  |  64 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                FWODGeom.h
  4. //    Release Version:    $ ODF 2 $
  5. //
  6. //    Copyright:            (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef FWODGEOM_H
  11. #define FWODGEOM_H
  12.  
  13. #ifndef PRODGEOM_H
  14. #include "PRODGeom.h"
  15. #endif
  16.  
  17. #ifndef FWODEXCE_H
  18. #include "FWODExce.h"
  19. #endif
  20.  
  21. #ifndef FWPOINT_H
  22. #include "FWPoint.h"
  23. #endif
  24.  
  25. #ifndef FWRECT_H
  26. #include "FWRect.h"
  27. #endif
  28.  
  29. //========================================================================================
  30. //    Forward Declarations
  31. //========================================================================================
  32.  
  33. class ODFrame;
  34. class ODShape;
  35. class ODTransform;
  36.  
  37. //========================================================================================
  38. //    Global Utilities
  39. //========================================================================================
  40.  
  41. // ----- ODShape utilities -----
  42.  
  43. ODShape*         FW_XorODShape(Environment* ev, ODShape* a, ODShape* d);
  44.  
  45. ODRgnHandle        FW_GetShapeRegion(Environment *ev, ODShape* odShape);
  46. void             FW_SetShapeRegion(Environment *ev, ODShape* odShape, ODRgnHandle rgnHandleToAdopt);
  47.  
  48. FW_CRect        FW_GetShapeBoundingBox(Environment *ev, ODShape* odShape);
  49.  
  50. // Create C++ wrappers for the "extern C" transform and shape creation functions
  51. ODShape*         FW_NewODShape(Environment* ev);
  52. ODShape*        FW_NewODShape(Environment *ev, ODShape* otherShape);
  53. ODShape*        FW_NewODShape(Environment *ev, const FW_CRect& rect);
  54. ODShape*        FW_NewODShape(Environment *ev, const FW_PlatformRect& plfmRect);
  55. ODShape*        FW_NewODShape(Environment *ev, ODRgnHandle rgnHandleToAdopt);
  56.  
  57. ODTransform*     FW_NewODTransform(Environment* ev);
  58. ODTransform*     FW_NewODTransform(Environment *ev, ODTransform* otherTransform);
  59. ODTransform*     FW_NewODTransform(Environment *ev, const FW_CPoint& offset);
  60. ODTransform*     FW_NewODTransform(Environment *ev, const FW_CPoint& offset, const FW_CPoint& scale);
  61.  
  62. #endif
  63.  
  64.